-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: allow index to be referenced by name #12404
Conversation
51396d4
to
7bcc05b
Compare
Apologies for the noise in the issues threads, I made more than one git goof... |
7bcc05b
to
fb577b7
Compare
@hsharrison If you want to avoid noise in issues, you can use |
@jorisvandenbossche thanks Looks like I was a bit premature with my pull request. Anyone have a suggestion for how to skip Panels here? Perhaps Or, I guess, Panels should behave similarly, but with |
Also, what's the best way to make changes to the pull request without adding more commits? Am I really supposed to force push? |
You can for now just add commits, and then when things shape up you can always squash in the end. I personally wouldn't bother for Panels (they will probably be deprecated in some time). |
note that what you are doing is way complicated - pls simplify much more |
OK, not surprised to hear. I assume you mean specifically the solution in Any suggestion for another method? It made sense to me to split the index and run each piece back through getitem. It's convoluted but any alternative I can come up with just seems even more convoluted. Would a I may have been a bit too ambitious for my first contribution, so any guidance is appreciated. |
what I mean is want to contain this change to a function that gets called when appropriate rather than inlining the code (eg u can call it in the except) further it needs to ask the index (maybe a new method) to evaluate if it has a particular name (this provides compat between index and multiindex) |
Cool, thanks :) |
Looks like there was a lot of compat there already that I wasn't aware of, specifically |
@@ -432,6 +432,7 @@ Other enhancements | |||
- Added Google ``BigQuery`` service account authentication support, which enables authentication on remote servers. (:issue:`11881`). For further details see :ref:`here <io.bigquery_authentication>` | |||
- ``HDFStore`` is now iterable: ``for k in store`` is equivalent to ``for k in store.keys()`` (:issue:`12221`). | |||
- The entire codebase has been ``PEP``-ified (:issue:`12096`) | |||
- Index (or index levels, with a MultiIndex) can now be referenced like column names (:issue:`8162`, :issue:`10816`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this won't be in 0.18.0. so remove for now
@hsharrison if you'd like to update / revisit at some point. This would be best for 0.19.0 |
Yes, sorry for the silence. I got bogged down and wasn't able to devote any more time to it, but I just picked it up again the other day. I'll reopen when I have something. Thanks for your comments btw. |
git diff upstream/master | flake8 --diff
Still missing are groupby support (#5677) and
.loc
support.Also, I wasn't sure if this deserves more than just a line in whatsnew, so I kept it small for now.
With a standard index:
and with a MultiIndex: